﻿using System;
using System.Collections.Generic;
using System.Text;
using yb.commerce.DAL;
using yb.commerce.Model;

namespace yb.commerce.BLL
{
    public class FriendLinkBusiness
    {
        public bool Add(FriendLink friendLink)
        {
            return new FriendLinkDAO().Add(friendLink);
        }

        public bool Delete(int Id)
        {
            return new FriendLinkDAO().Delete(Id);
        }

        public bool Update(FriendLink friendLink)
        {
            return new FriendLinkDAO().Update(friendLink);
        }

        public FriendLink GetEntity(int Id)
        {
            return new FriendLinkDAO().GetEntity(Id);
        }

        public DataRecordTable GetList(string fieldList, string orderField, bool orderBy, int pageIndex, int pageSize, string where)
        {
            return new FriendLinkDAO().GetList(fieldList,orderField,orderBy,pageIndex,pageSize,where);
        }
        public bool IsHaveSameName(FriendLink friendLink)
        {
            return new FriendLinkDAO().IsHaveSameName(friendLink);
        }
        public int GetMaxOrder()
        {
            return new FriendLinkDAO().GetMaxOrder();
        }
    }
}
